'use strict';

let
    Koa = require('koa'),
    bodyParesr = require('koa-bodyparser'),
    statics = require('koa-static'),
    app = new Koa(),
    controllers = require('./controllers'),
    tempMiddleWare = require('./tempMiddleWare'),
    port = 6556



app.use(statics(__dirname + '/view'));

app.use(bodyParesr());

app.use(tempMiddleWare);

app.use(controllers());

app.listen(port, () => {
    console.log(`http://localhost:${port}`);
});
